objs := start.o irq.o led.o sdram.o clock.o

interrupt.bin: $(objs)
	arm-linux-ld -Tinterrupt.lds -o interrupt.elf $^
	arm-linux-objcopy -O binary -S interrupt.elf $@
	arm-linux-objdump -D -m arm interrupt.elf > interrupt.dis
	
%.o:%.c
	arm-linux-gcc -nostdlib -Wall -c -o $@ $<

%.o:%.S
	arm-linux-gcc -nostdlib -Wall -c -o $@ $<

clean:
	rm -f interrupt.bin interrupt.elf interrupt.dis *.o		